#include <kernel.h>

int magicData = KERNEL_MAGIC;
char msgStart[] = "entry c code, kernel start!"; // 将存储在.data段
char buf[1024]; // 这个变量将存放在.bss段

void kernel_init()
{
    char *txtScreenAdr = (char *) 0xb8000; // 文本显示器的内存位置
    for (int i = 0; i < sizeof(msgStart); ++i) {
        txtScreenAdr[i * 2] = msgStart[i];
    }
}

